package indi.yangshenhui.spring.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import indi.yangshenhui.spring.dao.StudentDao;
import indi.yangshenhui.spring.pojo.StudentPojo;
import indi.yangshenhui.spring.service.StudentService;

@Service
public class StudentServiceImpl implements StudentService {

	@Autowired
	private StudentDao studentDao;

	@Transactional(propagation = Propagation.REQUIRED, readOnly = true)
	public List<StudentPojo> query(String[] params, int first, int max) {
		return studentDao.query(params, first, max);
	}

}